<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bilib悬停</title>
    <link rel="stylesheet" href="./index4.css">
    <style>
        .photo {
            width: 412px;
            height: 232px;
            background-image: url(http://codelover.club/coursefiles/Fh2scaNFdGi6d13919IqYs0SvEiZ.jpg);
            position: relative;
            cursor: pointer;
        }
        .mask {
            width: 412px;
            height: 0px;
            opacity: 0;
            box-sizing: border-box;
            background-color:rgba(0, 0, 0, 0.5);
            color: white;
            background-image: url(http://codelover.club/coursefiles/FqBixArJ6S60bWwN5hr3qRJMciYl.png);
            background-repeat: no-repeat;
            background-position: 333px 156px;
            padding-left: 20px;
            position: absolute;
            bottom: 0px;
            transition: 0.3s linear ;
        }
        .mask span {
            font-size: 30px;
        }
        .mask {
            overflow: hidden;
        }
        .photo:hover .mask {
            height: 232px;
            opacity: 1;
        }
        html, body {
            background-image: url(https://p.qqan.com/up/2020-10/16030984182548078.jpg) ;
        } 
        .top-nav {
            background-color: rgba(100, 148, 237, 0.283);
        }
        .next a {
            color: black;
        }
    </style>
</head>
<body>
    <div class="top-nav">
        <ul>
            <li><a href="./1css样式二.html">css样式二</a></li>
            <li><a href="./浮动练习.html">浮动与定位</a></li>
            <li><a target="_blank" href="./字体图标练习.html">字体图标</a></li>
            <li><a href="./立方体动画.html">立方体动画</a></li>
        </ul>
        </div>
    <div class="photo">
        <div class="mask"><span>她在哪里了</span>
            <p>远方的她，正无语凝眸，望眼欲穿</p>
            </div>
    </div>
    <div class="next"><a target="_blank" href="./子菜单.html">点我去二级菜单</a></div>
</body>
</html>